﻿@using WineStore.Extends;
@model WineStore.Models.Sim
@{
    ViewBag.Title = "DeleteSim";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
<style type="text/css">
    input, textarea, select {
        padding: 5px;
        border: 1px solid #ccc;
        border-radius: 3px;
        width: 200px;
        color: #333;
        box-shadow: rgba(0,0,0,0.1)0px 0px 8px;
        -moz-box-shadow: rgba(0,0,0,0.1)0px 0px 8px;
        -webkit-box-shadow: rgba(0,0,0,0.1)0px 0px 8px;
        margin: 5px;
    }

    textarea {
        width: 400px;
        height: 100px;
        max-width: 400px;
        line-height: 18px;
        border-radius: 3px;
        margin: 5px;
    }


        input:hover, textarea:hover, select:hover input:focus, textarea:focus, select:focus {
            border-color: 10px solid #C9C9C9;
            box-shadow: rgba(0,0,0,0.2)0px 0px 8px;
            -moz-box-shadow: rgba(0,0,0,0.2)0px 0px 8px;
            -webkit-box-shadow: rgba(0,0,0,0.2)0px 0px 8px;
            border-radius: 3px;
        }

    input .submit {
        height: 38px;
        background-color: #474E69;
        color: #FFF;
        border-radius: 3px;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        margin: 5px;
    }

    table.nostyle, table.nostyle th, table.nostyle td {
        border: 0 !important;
    }

        table.nostyle th {
            background: none !important;
            text-align: left !important;
        }

        table.nostyle th, table.nostyle td {
            padding: 3px 5px !important;
        }
</style>
<!-- Table (TABLE) -->
@if (Session["Admin"] != null)
{
    <h3 class="tit">Xóa Sim
    </h3>
    <fieldset>
        <legend>Xóa Sim</legend>
        @using (Html.BeginForm("DeleteSim", "Sim", FormMethod.Post, new { enctype = "multipart/form-data" }))
        { 
            @Html.HiddenFor(model => model.SimId)
            <table class="nostyle">
                <tbody>
                    <tr>
                        <td>Tên nhà mạng:
                        </td>
                        <td>
                            @ViewBag.SupplierName
                        </td>
                    </tr>
                    <tr>
                        <td>Tên nhóm:
                        </td>
                        <td>
                            @ViewBag.CategoryName
                        </td>
                    </tr>
                    <tr>
                        <td>Số Sim:
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.SimNumber)
                        </td>
                    </tr>
                    <tr>
                        <td>Giá Sim:
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.SimPrice)
                        </td>
                    </tr>
                    <tr>
                        <td>Ghi chú:
                        </td>
                        <td>
                            @Html.DisplayFor(model => model.SimNotice)
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" value="Xóa" class="submit" style="width: 100px; cursor: pointer;" />
                        </td>
                    </tr>
                </tbody>
            </table>
        }
    </fieldset>
}
else
{
    Response.Redirect("~/Admin/LogOn/");
}